home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Tracker Coordinates
- Sent: 6/6/96 9:56 AM
- Received: 6/6/96 10:11 AM
- From: Henri Lamiraux, lamiraux@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >Subject: Tracker Coordinates Time: 9:06 AM Date:6/6/96
- >
- >As near as I can tell, the FW_CTracker::Track method is inconsistent in terms
- >of the mouse coordinates it passes in its call to BeginTracking and then to
- >ContinueTracking.
- >
- >In BeginTracking, the point passed in is in view _content_ coordinates.
- >Whereas in ContinueTracking the current location point passed in is in view
- >coordinates.
- >
- >Shouldn't both of them be in view coordinates?
-
- I looked at the code and both are in view content coordinates.
- BeginTracking is called with the a point converted using
- FrameToViewContent. The point passed to ContinueTracking is also in view
- Content coordinates. FW_GetMouseLocation calls ::GetMouse and then
- converts the point to the logical coordinates of the current graphic
- context (theGC.DeviceToLogical(..)). In this case the view content
- coordinates.
-
- FW_CTracker::Track is used in both ODFDraw and ODFContainer which are
- both supporting scrolling. If there was a bug, the tracker would not be
- working correctly in a scrolled view.
-
- ........................................................................
- Henri Lamiraux lamiraux@apple.com
- Apple Computer, Inc. OpenDoc(tm) Development Framework
- ........................................................................
-
-